﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    /// <summary>
    /// 门店表
    /// </summary>
    public class corecmsstore
    {
        /// <summary>
        /// 序列
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public long id { get; set; }

        /// <summary>
        /// 是否为总店
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "mainStore", IsNullable = true)]
        public Int32 mainStore { get; set; }

        /// <summary>
        /// 总店编码
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "corpId", IsNullable = true)]
        public Int32 corpId { get; set; }

        /// <summary>
        /// 上级商户Id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "parentTenantId", IsNullable = false)]
        public Int32 parentTenantId { get; set; }

        /// <summary>
        /// 分表标识
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "splitId", IsNullable = true)]
        public Int32 splitId { get; set; }

        /// <summary>
        /// 分组类别
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "splitGroupId", IsNullable = true)]
        public Int32 splitGroupId { get; set; }

        /// <summary>
        /// 门店名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "storeName", IsNullable = true)]
        public String storeName { get; set; }

        /// <summary>
        /// 门店电话
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "mobile", IsNullable = true)]
        public String mobile { get; set; }

        /// <summary>
        /// 门店联系人
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "linkMan", IsNullable = true)]
        public String linkMan { get; set; }

        /// <summary>
        /// 门店logo
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "logoImage", IsNullable = true)]
        public String logoImage { get; set; }

        /// <summary>
        /// 保证金
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "earnestAmount", IsNullable = true)]
        public Decimal earnestAmount { get; set; }

        /// <summary>
        /// 保证金结余
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "earnestBalance", IsNullable = true)]
        public Decimal earnestBalance { get; set; }

        /// <summary>
        /// 门店地区id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "areaId", IsNullable = false)]
        public Int32 areaId { get; set; }

        /// <summary>
        /// 城市id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "cityId", IsNullable = true)]
        public Int32 cityId { get; set; }

        /// <summary>
        /// 省份id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "provinceId", IsNullable = true)]
        public Int32 provinceId { get; set; }

        /// <summary>
        /// 门店详细信息
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "address", IsNullable = true)]
        public String address { get; set; }

        /// <summary>
        /// 坐标位置
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "coordinate", IsNullable = true)]
        public String coordinate { get; set; }

        /// <summary>
        /// 维度
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "latitude", IsNullable = true)]
        public String latitude { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "longitude", IsNullable = true)]
        public String longitude { get; set; }

        /// <summary>
        /// 是否默认
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "isDefault", IsNullable = false)]
        public Boolean isDefault { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "createTime", IsNullable = false)]
        public DateTime createTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "updateTime", IsNullable = true)]
        public DateTime? updateTime { get; set; }

        /// <summary>
        /// 距离
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "distance", IsNullable = false)]
        public Decimal distance { get; set; }

        /// <summary>
        /// 营业时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "openingTime", IsNullable = true)]
        public String openingTime { get; set; }

        /// <summary>
        /// 打烊时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "closingTime", IsNullable = true)]
        public String closingTime { get; set; }

        /// <summary>
        /// 小程序AppID
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "appId", IsNullable = true)]
        public String appId { get; set; }

        /// <summary>
        /// 小程序appSecret
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "appSecret", IsNullable = true)]
        public String appSecret { get; set; }

        /// <summary>
        /// 支付账号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "payAccount", IsNullable = true)]
        public String payAccount { get; set; }

        /// <summary>
        /// 商城类型(0是B2C，1是B2B) 
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "mallType", IsNullable = true)]
        public Int32 mallType { get; set; }

        /// <summary>
        /// 会员共享码
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "sharingCode", IsNullable = true)]
        public String sharingCode { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "isDelete", IsNullable = true)]
        public Boolean isDelete { get; set; }

        /// <summary>
        /// Redis订阅频道号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "channel", IsNullable = true)]
        public Int32 channel { get; set; }


        /// <summary>
        /// 同步数据第三方平URL
        /// </summary>
        [SugarColumn(ColumnName = "syncUrl", IsNullable = true)]
        public System.String syncUrl { get; set; }

        /// <summary>
        /// 是否同步
        /// </summary>
        [SugarColumn(ColumnDescription = "是否同步")]
        public System.Boolean syncFlag { get; set; }

        /// <summary>
        /// 注册号
        /// </summary>
        [SugarColumn(ColumnName = "registerNo", IsNullable = true)]
        public System.String registerNo { get; set; }

        /// <summary>
        /// 设备Id
        /// </summary>
        [SugarColumn(ColumnName = "deviceId", IsNullable = true)]
        public System.String deviceId { get; set; } = string.Empty;


        /// <summary>
        /// 部门Id
        /// </summary>
        [SugarColumn(ColumnName = "branchId", IsNullable = true)]
        public System.Int64 branchId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [SugarColumn(ColumnName = "branchName", IsNullable = true)]
        public System.String branchName { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [SugarColumn(ColumnName = "deviceName", IsNullable = true)]
        public System.Int64 deviceName { get; set; }

    }
}
